package com.bdqn.controller;

import com.bdqn.pojo.Mainmenu;
import com.bdqn.service.impl.MainmenuServiceImpl;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
public class MenuController {

    @Resource
    MainmenuServiceImpl mainmenuService;

    @RequestMapping("/menuList")
    public List<Mainmenu> menuList(){
        List<Mainmenu> mainmenus = mainmenuService.menuList();
        return  mainmenus;
    }

}
